Skip to content

Add registry auth to service create/update operations#115

Merged
firecow merged 8 commits intomainfrom
add-registry-auth
Mar 4, 2026
Merged

Add registry auth to service create/update operations#115
firecow merged 8 commits intomainfrom
add-registry-auth

Conversation

@firecow
Copy link
Member

@firecow firecow commented Mar 4, 2026

Summary

  • Read Docker credentials from ~/.docker/config.json (or $DOCKER_CONFIG) and pass authconfig when creating/updating Swarm services
  • Allows worker nodes to pull private registry images without local credentials
  • No-op when Docker config is missing or has no matching auth entry

Test plan

  • Build Docker image locally
  • Deploy a stack with a private registry image and verify workers can pull it
  • Deploy a stack with a public image and verify no regression
  • Mount /root/.docker/config.json:ro into the swarm-app container (separate CI module change)

Read Docker credentials from ~/.docker/config.json and pass them as
X-Registry-Auth header when creating or updating Swarm services. This
allows worker nodes to pull private images without having the
credentials configured locally.
@firecow firecow self-assigned this Mar 4, 2026
@firecow firecow merged commit 33fd2dc into main Mar 4, 2026
4 checks passed
@firecow firecow deleted the add-registry-auth branch March 4, 2026 17:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant